<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE HTML>
<html>
<head>
    <title>后台管理系统</title>
    <!--  手机适配 -->
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="${pageContext.request.contextPath}/js/assets/css/dpl-min.css" rel="stylesheet" type="text/css" />
    <link href="${pageContext.request.contextPath}/js/assets/css/bui-min.css" rel="stylesheet" type="text/css" />
    <link href="${pageContext.request.contextPath}/js/assets/css/main-min.css" rel="stylesheet" type="text/css" />
</head>
<body>

<div class="header">

    <div class="dl-title">
        <!--<img src="/chinapost/Public/assets/img/top.png">-->
    </div>

    <div class="dl-log">
    	<c:if test="${userSession.userType==1}">代理商</c:if>
    	<c:if test="${userSession.userType==2}">推广员</c:if>
    	<c:if test="${userSession.userType==3}">超级管理员</c:if>
    	:<span class="dl-log-user"> ${userSession.userName} ,欢迎您 </span><a href="${pageContext.request.contextPath}/admin/logout.html" title="退出系统" class="dl-log-quit">[退出]</a>
    </div>
</div>
<div class="content">
    <div class="dl-main-nav">
        <div class="dl-inform"><div class="dl-inform-title"><s class="dl-inform-icon dl-up"></s></div></div>
        <ul id="J_Nav"  class="nav-list ks-clear">
            <li class="nav-item dl-selected"><div class="nav-item-inner nav-home">业务管理</div></li>	
            <li class="nav-item dl-selected"><div class="nav-item-inner nav-order">下级管理</div></li>
			<li class="nav-item dl-selected"><div class="nav-item-inner nav-order">公告版</div></li>
			<li class="nav-item dl-selected"><div class="nav-item-inner nav-order">系统设置</div></li>
        </ul>
    </div>
    <ul id="J_NavContent" class="dl-tab-conten">

    </ul>
</div>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/assets/js/jquery-1.8.1.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/assets/js/bui-min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/assets/js/common/main-min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/assets/js/config-min.js"></script>
<script>
    BUI.use('common/main',function(){
        var config = ${menusSession} ; 
        
        /* [{id:'1',menu:[{text:'房卡管理',items:[{id:'12',text:'充房卡',href:'card_list.html'},
                                                        {id:'3',text:'饭卡流入',href:'card_into.html'},
                                                        {id:'4',text:'房卡流出',href:'card_inflow.html'}]}]},
                      {id:'7',homePage : '9',menu:[{text:'下级管理',items:[{id:'9',text:'下级列表',href:'user_next_info.html'}]}]},
                      {id:'10',homePage : '13',menu:[{text:'公告版',items:[{id:'13',text:'公告版',href:'notice.html'}]}]},
                      {id:'16',homePage : '17',menu:[{text:'业务管理',items:[{id:'14',text:'个人中心',href:'user_info.html'},
                                                                         {id:'17',text:'修改密码',href:'updatepwd.html'}                      
                      ]}]}]; */
        
        
        new PageUtil.MainPage({
            modulesConfig : config
        });
    });
    
    
    
  	//鍏ㄥ眬璁剧疆ajax璇锋眰鐧婚檰杩囨湡
    $.ajaxSetup({
        contentType:"application/x-www-form-urlencoded;charset=utf-8",
        complete:function(XMLHttpRequest,textStatus){
              //閫氳繃XMLHttpRequest鍙栧緱鍝嶅簲澶达紝sessionstatus           
              var sessionstatus=XMLHttpRequest.getResponseHeader("sessionstatus"); 
              if(sessionstatus=="timeOut"){
                   //寮瑰嚭鐧诲綍妗�
                  alert("\u4F1A\u8BDD\u8FC7\u671F\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55\uFF01");
                  window.top.location='${pageContext.request.contextPath}/logout';  
           	  }
        }
    });
</script>
<div style="text-align:center;">
<p>零至一科技</p>
</div>
</body>
</html>